package com.lening.collect.pojo;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author 杨军
 * @since 2024-05-31
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_pledge")
@ApiModel(value="Pledge对象", description="")
public class Pledge implements Serializable {
    @JsonFormat(locale= "zh", timezone= "GMT+8", pattern= "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "小区的id")
    private Integer rId;

    @ApiModelProperty(value = "押金名称")
    private String name;

    @ApiModelProperty(value = "业主姓名")
    private String ownerName;

    @ApiModelProperty(value = "业主手机号")
    private String ownerTel;

    @ApiModelProperty(value = "装修押金")
    private BigDecimal pledge;

    @ApiModelProperty(value = "装修周期")
    private Integer period;

    @ApiModelProperty(value = "预计工期")
    private Integer predict;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime newDate;

    @ApiModelProperty(value = "负责人")
    private String principal;

    @ApiModelProperty(value = "负责人手机号")
    private String principalTel;

    @ApiModelProperty(value = "相关证据")
    private String proofUrl;

    @ApiModelProperty(value = "装修图纸")
    private String drawingUrl;

    @ApiModelProperty(value = "状态：1:已支付0:待支付2：待验收3：已验收")
    private Integer status;

    @ApiModelProperty(value = "状态：0:已退还1:未退还")
    private Integer statusPay;
}
